Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Alternate Tracks


SetMediaLanguage

The SetMediaLanguage function sets a media's language or region code. You should call this function only when you are creating a new media. See Inside Macintosh: Text for more information on language and region codes.

pascal void SetMediaLanguage (Media theMedia, short language);
theMedia
Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as NewTrackMedia and GetTrackMedia (described on page 2-136 and page 2-188, respectively).
language
Specifies the media's language or region code.
ERROR CODES
invalidMedia-2008This media is corrupted or invalid
SEE ALSO
You can retrieve a media's language or region code by calling the GetMediaLanguage function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996